package com.lumlord.common.shiro.service;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.security.auth.Destroyable;

/**
 * 
 * @author gpf
 * def MemoryConstrainedCacheManager 
 */
@Component
public class CustomCacheManager implements  CacheManager, Destroyable {
	@Resource
	private CustomCache  cache;

	@Override
	public <K, V> Cache<K, V> getCache(String s) throws CacheException {

		return cache;
	}

}
